package com.example;

import java.util.Scanner;

public class PutIn {
    public static void main(String[] args) {
        // 标准输入输出
        Scanner putInHandler = new Scanner(System.in);
        System.out.println("What is your name?");
        String name = putInHandler.nextLine(); // 读取下一行输入内容作为输入数据
        System.out.println("What is your sex?");
        String sex = putInHandler.next();// 读取下一个以空格分隔后的字符串
        System.out.println("When is your birthday of year?");
        int year = putInHandler.nextInt();// 读取下一个输入的int型数据
        System.out.println("Your name is " + name + " Your sex is " + sex + " and birthed in " + year);
    }
}
